package com.baichang.taoshunda.entity.em;

/**
 * Created by Administrator on 2018/1/30 0030.
 */
public enum  currencyCode {

    申核中(1), 同意申请(2), 拒绝申请(3), 待支付(4), 到期(5);

    private Integer code;

    private currencyCode(Integer code) {
        this.code = code;
    }

    public static currencyCode valueOfCode(Integer code) {
        currencyCode[] states = currencyCode.values();
        for (currencyCode state : states) {
            if (state.getCode().equals(code)) {
                return state;
            }
        }
        return null;
    }

    public Integer getCode() {
        return this.code;
    }

    @Override
    public String toString() {
        return String.valueOf(this.code);
    }
}
